#include <iostream>
#include <string>
#include <deque>
using namespace std;

int main(){
    string word;
    deque<string> sd;
    while(cin>>word){
        sd.push_back(word);
    }
    auto beg=sd.cbegin();
    auto end=sd.cend();
    for(;beg!=end;beg++){
        cout<<*beg<<endl;
    }

    return 0;

}